Test Helpers

This test helper can be used to interact with the database in your tests. It works with the new test syntax, and can be used in all styles of tests (e.g. acceptance, integration, unit).

import { setupIndexedDb } from 'ember-indexeddb/test-support/helpers/indexed-db';

module('Acceptance | my test', function(hooks) {
 setupApplicationTest(hooks);
 setupIndexedDb(hooks);

  // add your actual tests here
});

This will setup & open a randomly named database for this test, and close & delete it again after the test.